package yxy.banana.socket.coder;

import java.net.URI;

import io.netty.channel.ChannelPipeline;

public class WebSocketClientCoder extends WebSocketProtobufCoder {
	private URI uri = null;

	public WebSocketClientCoder(URI uri, String subprotocol) {
		super(subprotocol, Part.Client);
		this.uri = uri;
	}

	public WebSocketClientCoder(URI uri) {
		this(uri, null);
	}

	public URI uri() {
		return this.uri;
	}

	@Override
	protected String resource(ChannelPipeline pipeline) {
		return null;
	}

	@Override
	protected URI uri(ChannelPipeline pipeline) {
		return this.uri;
	}

}
